home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / gexamples / Makefile < prev    next >
Makefile  |  1997-07-22  |  2KB  |  84 lines

  1. #
  2. # $Id: Makefile,v 1.3 1997/05/08 16:07:22 pvmsrc Exp $
  3. #
  4. # Makefile for PVM group library example programs.
  5. #
  6. # Set PVM_ROOT to the path where PVM includes and libraries are installed.
  7. # Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.)
  8. # Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, etc.)
  9. # otherwise leave ARCHLIB blank
  10. #
  11. # PVM_ARCH and ARCHLIB are set for you if you use "$PVM_ROOT/lib/aimk"
  12. # instead of "make".
  13. #
  14.  
  15. #PVM_ROOT    =
  16. #PVM_ARCH    =
  17. #ARCHCFLAGS    =
  18.  
  19. SHELL    =    /bin/sh
  20.  
  21. PVMDIR    =    $(PVM_ROOT)
  22. SDIR    =    $(PVMDIR)/gexamples
  23. PVMIDIR    =    $(PVMDIR)/include
  24. PVMLDIR    =    $(PVMDIR)/lib/$(PVM_ARCH)
  25. PVMLIB    =    -lgpvm3 -lpvm3
  26. CFLOPTS    =    -g
  27. CFLAGS    =    $(CFLOPTS) -I$(PVMIDIR) -L$(PVMLDIR) $(ARCHCFLAGS)
  28. #BDIR    =    $(HOME)/pvm3/bin
  29. BDIR    =    $(PVMDIR)/bin
  30. XDIR    =    $(BDIR)/$(PVM_ARCH)
  31. F77        =    f77
  32. FFLOPTS    =    -g
  33. FFLAGS    =    $(FFLOPTS)
  34. PVMFLIB    =    -lfpvm3 $(PVMLIB)
  35.  
  36. all: gexamp tst thb tnb ge tjl tjf gs
  37.  
  38. joinleave: $(SDIR)/joinleave.c
  39.     $(CC) $(CFLAGS) -o joinleave joinleave.c $(PVMLIB)
  40.  
  41. tst: $(SDIR)/tst.c
  42.     $(CC) $(CFLAGS) -o tst tst.c $(PVMLIB)
  43.     cp tst $(XDIR)
  44.  
  45. gs: $(SDIR)/gs.c
  46.     $(CC) $(CFLAGS) -o gs gs.c $(PVMLIB)
  47.     cp gs $(XDIR)
  48.  
  49. ge: $(SDIR)/ge.c
  50.     $(CC) $(CFLAGS) -o ge ge.c $(PVMLIB)
  51.     cp ge $(XDIR)
  52.  
  53. gexamp: $(SDIR)/gexamp.c
  54.     $(CC) $(CFLAGS) -o gexamp gexamp.c $(PVMLIB)
  55.     cp gexamp $(XDIR)
  56.  
  57. thb: $(SDIR)/thb.c
  58.     $(CC) $(CFLAGS) -o thb thb.c $(PVMLIB)
  59.     cp thb $(XDIR)
  60.  
  61. tnb: $(SDIR)/tnb.c
  62.     $(CC) $(CFLAGS) -o tnb tnb.c $(PVMLIB)
  63.     cp tnb $(XDIR)
  64.  
  65. tjl: $(SDIR)/tjl.c
  66.     $(CC) $(CFLAGS) -o tjl tjl.c $(PVMLIB)
  67.     cp tjl $(XDIR)
  68.  
  69. tjf: $(SDIR)/tjf.c
  70.     $(CC) $(CFLAGS) -o tjf tjf.c $(PVMLIB)
  71.     cp tjf $(XDIR)
  72.  
  73. trsg: $(SDIR)/trsg.c
  74.     $(CC) $(CFLAGS) -o trsg trsg.c $(PVMLIB)
  75.     cp trsg $(XDIR)
  76.  
  77. frsg: $(SDIR)/frsg.f
  78.     $(F77) $(FFLAGS) -o frsg frsg.f $(PVMFLIB)
  79.     cp frsg $(XDIR)
  80.  
  81. clean:
  82.     rm -f *.o tst thb tnb tjl tjf ge gexamp gs joinleave trsg frsg
  83.  
  84.